package com.wuyou.designPatterns.state;

/**
 * Main
 *
 * @Date 2024/10/17 11:29
 * @Author 无忧
 */
public class Main {


    public static void main(String[] args) {
        SafeFrame frame = new SafeFrame("State Sample");
        while (true) {
            for (int hour = 0; hour < 24; hour++) {
                frame.setClock(hour);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        }
    }
}
